#ifndef H_CHAT_CHATMESSAGETASK_H
#define H_CHAT_CHATMESSAGETASK_H

#include "../core/threadpool.h"
#include "../net/session.h"

namespace QinChat{
    namespace Chat{
        class CChatMessageTask : public Core::CTask{
            public:
                explicit CChatMessageTask(std::shared_ptr<Net::CSession> pSeesion, char *message, int len);
                virtual ~CChatMessageTask(void);

            protected:
                virtual void Exect();

            private:
                std::shared_ptr<Net::CSession> m_pSeesion;
                char m_message[1024] = {0};
                int m_nLen = 0;
                
        };
    }
}

#endif // ! H_CHAT_CHATMESSAGETASK_H
